home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / Developer Essentials May91 / MPW Interfaces & Libraries 3.2 / AIncludes / ROMEqu.a < prev    next >
Encoding:
Text File  |  1991-04-17  |  6.7 KB  |  178 lines  |  [TEXT/MPS ]

  1. ; Version: 3.16
  2. ; Created: Friday, October 20, 1989 at 9:44:53 PM
  3. ;
  4. ; File: ROMEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1986-1990
  8. ; All Rights Reserved
  9. ;
  10. ; Description : This file contains the CONST definitions used by the
  11. ; Slot Manager and Declaration ROM's
  12. ;
  13. ;------------------------------------------------------------------------
  14.  
  15.  
  16. ; Constants
  17.  
  18. ; Misc.
  19.     IF &TYPE('__IncludingROMEqu__') = 'UNDEFINED' THEN
  20. __IncludingROMEqu__    SET    1
  21.  
  22. defaultTO         EQU         100
  23. ;=====================================================================
  24. ;Format-Header
  25. ;=====================================================================
  26. appleFormat       EQU         1                         ;Format of Declaration Data (IEEE will assign real value)
  27. romRevision       EQU         1                         ;First ROM revision.
  28. romRevRange       EQU         9                         ;Revision of Declaration Data Format [1..9]
  29. testPattern       EQU         1519594439                ;FHeader long word test pattern
  30. ;=====================================================================
  31. ;sExec constants
  32. ;=====================================================================
  33. sExec2            EQU         2                         ;Revision of header {For sExec}.
  34. ;=====================================================================
  35. ;sExec constants
  36. ;=====================================================================
  37. sCPU68000         EQU         1                         ;CPU type = 68000
  38. sCPU68020         EQU         2                         ;CPU type = 68020
  39. sCPU68030         EQU         3                         ;CPU type = 68030            <1.3>
  40. sCPU68040        EQU            4                        ;CPU type = 68040            <1.4>
  41.  
  42. ;=====================================================================
  43. ;sDRVR directory constants
  44. ;=====================================================================
  45. sMacOS68000       EQU         1                         ;Mac OS, CPU type = 68000
  46. sMacOS68020       EQU         2                         ;Mac OS, CPU type = 68020
  47. sMacOS68030        EQU            3                        ;Mac OS, CPU type = 68030    <1.3>
  48. sMacOS68040        EQU            4                        ;Mac OS, CPU type = 68040    <1.4>
  49.  
  50.  
  51. ;=====================================================================
  52. ;sResource types
  53. ;=====================================================================
  54.  
  55. ;<Category>
  56. catBoard          EQU         $0001                    ;        <1.3>
  57. catTest           EQU         $0002                    ;        <1.3>
  58. catDisplay        EQU         $0003                    ;        <1.3>
  59. catNetwork        EQU         $0004                    ;        <1.3>
  60. CatCPU            EQU            $000A                    ;        <1.3>
  61.  
  62. ;<Type>
  63. typBoard          EQU         $0000                    ;        <1.3>                    
  64. typApple          EQU         $0001                    ;        <1.3>
  65. typVideo          EQU         $0001                    ;        <1.3>
  66. typEtherNet       EQU         $0001                    ;        <1.3>
  67.  
  68. Typ68000        EQU            $0002                    ;        <1.3>    
  69. Typ68020        EQU            $0003                    ;        <1.3>
  70. Typ68030        EQU            $0004                    ;        <1.3>
  71. Typ68040        EQU            $0005                    ;        <1.4>
  72.  
  73. ;Driver Interface : <id.SW>
  74. DrSwMacCPU        EQU            0                        ;         <1.3>
  75. drSwApple         EQU         1                        ;         <1.3>
  76.  
  77. ;Driver Interface : <id.SW><id.WH>
  78. drHwTFB           EQU         1
  79. drHw3Com          EQU         1
  80. drHwBSC           EQU         3
  81.  
  82.  
  83. ;=====================================================================
  84. ;Declaration ROM Id's
  85. ;=====================================================================
  86. ;---------------------------------------------------------------------
  87. ; Misc
  88. ;---------------------------------------------------------------------
  89. endOfList         EQU         255                       ;End of list
  90.  
  91.  
  92. ;---------------------------------------------------------------------
  93. ; sResource List. Category: All
  94. ;---------------------------------------------------------------------
  95. ;The following Id's are common to all sResources.
  96. sRsrcType         EQU         1                         ;Type of sResource
  97. sRsrcName         EQU         2                         ;Name of sResource
  98. sRsrcIcon         EQU         3                         ;Icon
  99. sRsrcDrvrDir      EQU         4                         ;Driver directory
  100. sRsrcLoadRec      EQU         5                         ;Load record
  101. sRsrcBootRec      EQU         6                         ;sBoot record
  102. sRsrcFlags        EQU         7                         ;sResource Flags
  103. sRsrcHWDevId      EQU         8                         ;Hardware Device Id
  104. minorBaseOS       EQU         10                        ;Offset to base of sResource in minor space.
  105. minorLength       EQU         11
  106. majorBaseOS       EQU         12                        ;Offset to base of sResource in Major space
  107. majorLength       EQU         13
  108. sRsrcTest         EQU         14                        ; sBlock diagnostic code
  109. sRsrcCIcon        EQU         15                        ; CQD color icon
  110. sRsrcIcl8        EQU            16                        ; 'icl8' 8-bit color icon data
  111. sRsrcIcl4        EQU            17                        ; 'icl4' 4-bit color icon data
  112.  
  113. sGammaDir        EQU            64                        ; spID for gamma directory
  114. sRsrcVidNames    EQU            65                        ; spID for video name directory
  115.  
  116. ;---------------------------------------------------------------------
  117. ; sResource List. Category: Board
  118. ;---------------------------------------------------------------------
  119. ;The following Id's are common to all Board sResources.
  120. boardId           EQU         32                        ;Board Id
  121. pRAMInitData      EQU         33                        ;sPRAM init data
  122. primaryInit       EQU         34                        ;Primary init record
  123. timeOutConst      EQU         35                        ;Time Out constant. 
  124. vendorInfo        EQU         36                        ;Vendor information List {See Vendor List, below}
  125. boardFlags        EQU         37                        ;Board Flags
  126. secondaryInit    EQU            38                        ;Secondary init record                <1.1>    
  127.  
  128. ;---------------------------------------------------------------------
  129. ; sResource List. Category: Board
  130. ;---------------------------------------------------------------------
  131. ;The following Id's are associated with all CPU sResources.
  132. MajRAMSp          EQU         129                       ;ID of Major RAM space.
  133. MinROMSp          EQU         130                       ;ID of Minor ROM space.
  134.  
  135.  
  136. ;---------------------------------------------------------------------
  137. ;Vendor List
  138. ;---------------------------------------------------------------------
  139. ;The following Id's are associated with the VendorInfo id
  140. vendorId          EQU         1                         ;Vendor Id
  141. serialNum         EQU         2                         ;Serial number
  142. revLevel          EQU         3                         ;Revision level
  143. partNum           EQU         4                         ;Part number
  144. Date              EQU         5                         ;ID of date field in vendor info list.
  145.  
  146.  
  147. ;---------------------------------------------------------------------
  148. ; sResource List. Category_Type: Test_One
  149. ;---------------------------------------------------------------------
  150. ;The following Id's are common to all Test_One_x sResources.
  151. testByte          EQU         32                        ;Test byte.
  152. testWord          EQU         33                        ;Test Word.
  153. testLong          EQU         34                        ;Test Long.
  154. testString        EQU         35                        ;Test String.
  155.  
  156.  
  157.  
  158. ;*************************************************************
  159. ;Macros
  160. ;*************************************************************
  161. ;=============================================================
  162. ; Offset List Entry
  163. ;=============================================================
  164.                   MACRO
  165.                   OSLstEntry  &Id,&Offset
  166.                   DC.L        (&Id<<24)++((&Offset-*)**$00FFFFFF)
  167.                   ENDM
  168.  
  169.  
  170. ;=============================================================
  171. ; Data List Entry
  172. ;=============================================================
  173.                   MACRO
  174.                   DatLstEntry &Id,&Data
  175.                   DC.L        (&Id<<24)+&Data
  176.                   ENDM
  177.  
  178.     ENDIF    ; ...already included